package com.xiaoxu.rental.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 *
 * @TableName busi_violation
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("busi_violation")
@ApiModel(value = "Violation对象", description = "")
public class Violation implements Serializable {
    /**
     * 违章id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 车辆id
     */
    private Integer autoId;

    /**
     * 车牌号码
     */
    private String autoNum;

    /**
     * 违章时间
     */
    @ApiModelProperty("违章时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime vtime;

    /**
     * 违章事由
     */
    private String reason;

    /**
     * 违章地点
     */
    private String location;

    /**
     * 扣分
     */
    private Integer deductPoints;

    /**
     * 罚款
     */
    private Integer fine;

    /**
     * 是否处理 0 -未处理  1-已处理
     */
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    private Integer deleted;

    @ApiModelProperty(value = "上线时间")
    @TableField(exist = false)
    private Integer lowFine;
    @TableField(exist = false)
    private Integer highFine;
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lowVtime;
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime highVtime;






    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
